<template>
  <view>
    <my-login v-if="!token"></my-login>
    <my-userinfo v-else></my-userinfo>
  </view>
</template>

<script>
  import mixinjs from '@/mixins/index.js'
  import {
    mapState
  } from 'vuex'
  export default {
    mixins: [mixinjs],
    data() {
      return {

      }
    },
    computed: {
      ...mapState('user', ['token'])
    },
    methods: {

    }
  }
</script>

<style lang="scss" scoped>

</style>